﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Operator__DecreaseandAdd
{
    class Program
    {
        static void Main(string[] args)
        {
            //前缀方式增1运算符
            int num = 0;
            while (num < 3)
            {
                Console.WriteLine("变量num的值为：{0}", num);
                ++num;
            }
            //前缀方式减1运算符
            int i = 8;
            do
            {
                Console.WriteLine("变量i的值为：{0}", i);
                --i;
            } while (i > 5);
            Console.ReadLine();
        }
    }
}
